A stock market or equity market is a public (a loose network of economic transactions, not a physical facility or discrete) entity for the trading of company stock (shares) and derivatives at an agreed price; these are securities listed on a stock exchange as well as those only traded privately.
Stock Market is synonymous with the word gambling for both the experts as well as beginners. It is highly advisable to understand the functioning of the stock market before making any transaction or investment.